package br.com.carser.business;

import java.util.List;

import javax.ejb.Remote;

import br.com.carser.business.infra.BaseBusiness;
import br.com.carser.model.Profile;

/**
 * Interface to profile business.
 * 
 * @author Eduardo T. Serete
 */
@Remote
public interface ProfileBusiness extends BaseBusiness<Profile> {

	
	/**
	 * Get all by content name.
	 * 
	 * @param String
	 *            : name.
	 * 
	 * @return List<Profile>: profile list.
	 * 
	 * @throws Throwable
	 *             : connection issues.
	 */
	List<Profile> getByName(String name);

	/**
	 * Get by whole name.
	 * 
	 * @param name
	 * 
	 * @return profile.
	 */
	Profile getUniqueByName(String name);

}